
const file = require("./questions.json");
const {content } = file[0]

function transfrom (list) {
  return list.map(item => { 
    const ages = item.age.split("-");
    return {
      ...item,
      min:ages[0]*1,
      max: ages[1]*1
    }
  });
}
export default transfrom(content);
